<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="../Public/js/html5.js"></script>
<script type="text/javascript" src="../Public/js/respond.min.js"></script>
<script type="text/javascript" src="../Public/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="../Public/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="../Public/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="../Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->

<title>疑问 管理</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span>栏目管理 <span class="c-gray en"><!-- &gt;</span>疑问解答列表  --><a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<form action="" method="post" id="searchForm" >

<div class="pd-20">

       <!-- <div class="panel panel-primary radius">
    <span class="l"> <a href="#" class="btn btn-danger radius del"><i class="icon-trash"></i> 批量删除</a> </span>&nbsp;&nbsp;  
<a href="#" class="btn btn-success radius flagok"><i class="icon-ok"></i>通过</a> &nbsp;&nbsp;  
	<a href="#" class="btn btn-primary radius flagno"><i class="icon-remove"></i> 不通过</a>
	
	 &nbsp;&nbsp;  
    <span class="r">共有数据：<strong>{:$pageCount}</strong> 条</span>
    </div> -->
	<div class="panel-body">
  <form action="{:u('Admin/menu/two_upd',array('tid'=>$vo['tid']))}" method="post">
  <table  class="table table-border table-bordered  radius table-striped table-hover"  width="100%">
    <thead>
    
      <tr class="text-c">
        <th width="150" align="center">文章ID</th>
        <th width="150" align="center">文章类别</th>
        <th width="150" align="center">文章题目</th>
        <th width="251" align="center">文章内容</th>
        <th width="150" align="center">添加时间</th>
        <th width="150" align="center">文章作者</th>
        <th width="80" align="center">操作</th>
      </tr>
    </thead>
    <tbody>
	 <volist name="menu1" id="vo">
      <tr class="text-c">
        <td align="center" class="old_tid">{$vo.id}</td>
        <td align="center">
        <if condition="$vo.type eq 1">案例分析</if>
        <if condition="$vo.type eq 2">快易修要闻</if>
        <if condition="$vo.type eq 3">电脑维修新闻</if>
        <if condition="$vo.type eq 4">手机新闻</if>
        </td>
        <td align="center">{$vo.title}</td>
        <td align="center">{$vo.intro}</td>
        <td align="center">{$vo.addtime}</td>
        <td align="center">{$vo.publisher}</td>
        <td align="center"><input type="button" id="sub" value="修改"></td>
      </tr>
    </volist>
    </tbody>
  </table>
  </form>
 <div id="pageNav" class="pageNav"> {$page}</div>
</div>
</div>

</form>
<script type="text/javascript" src="../Public/js/jquery.min.js"></script>
<script type="text/javascript" src="../Public/layer/layer.min.js"></script>
<script type="text/javascript" src="../Public/js/jquery.form.js"></script>
<script type="text/javascript" src="../Public/js/H-ui.admin.js"></script>  
<script type="text/javascript">
var url="{:u('Admin/Ask/delAsk')}";
$(function(){
  $("#sub").click(function() {
  
  })
	$(".del").click(function(){
	   layer.confirm('确认要删除吗？',function(index){
	   commonAjaxSubmit(url);
	   location.replace("{:u('Admin/Ask/index')}");
	  });
  });
	 // 审核通过
  	$(".flagok").click(function(){
	   layer.confirm('确认要通过吗？',function(index){
	   commonAjaxSubmit("{:u('Admin/Ask/flagOk')}");
	   location.replace("{:u('Admin/Ask/index')}");
	  });
  });
    // 审核不通过
  	$(".flagno").click(function(){
	   layer.confirm('确认要不通过吗？',function(index){
	   commonAjaxSubmit("{:u('Admin/Ask/flagNo')}");
	   location.replace("{:u('Admin/Ask/index')}");
	  });
  });
  
  //搜索表单
  $("#searchFormBtn").click(function(){
      $("#searchForm").submit();  
  });
  
});

</script>


</body>
</html>